package org.jeecg.modules.demo.cms.article.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.demo.cms.article.entity.CmsArticle;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.cms.article.vo.CmsArticleVo;

/**
 * @Description: 网站新闻表
 * @Author: jeecg-boot
 * @Date:   2025-06-07
 * @Version: V1.0
 */
public interface ICmsArticleService extends IService<CmsArticle> {

    public void updateById(CmsArticleVo cmsArticleVo);

//    IPage<CmsArticleVo> pageSelectArticle(Page<CmsArticle> page, CmsArticleVo cmsArticleVo);


    IPage<CmsArticleVo> pageSelectArticle(Page<CmsArticleVo> page, Wrapper<CmsArticle> queryWrapper);

    void saveCmsArticleVo(CmsArticleVo cmsArticleVo);

    /**
     * 删除新闻 同时在删除记录中生成一条删除信息
     * @param id
     */
    void deleteArticleById(String id);
}
